﻿using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace AFT.Parking.Entity.ArgumentEntity
{
    public class PaginationParam<T>
    {
        /// <summary>
        /// 每页显示记录数
        /// </summary>
        public int PageSize
        {
            get;
            set;
        }

        /// <summary>
        /// 当前页码
        /// </summary>
        public int PageIndex
        {
            get;
            set;
        }

        /// <summary>
        /// 条件表达式
        /// </summary>
        public Expression<Func<T, bool>> Expression
        {
            get;
            set;
        }

        /// <summary>
        /// 排序表达式
        /// </summary>
        public List<OrderBy<T>> OrderByList
        {
            get;
            set;
        }

        /// <summary>
        /// 此属性已过期
        /// </summary>
        public T TModel
        {
            get;
            set;
        }

        //public bool Order
        //{
        //    get { return _Order; }
        //    set { _Order = value; }
        //}
    }
}
